package com.snail.controller;

import com.snail.model.pojo.cart.BizOrder;
import com.snail.model.pojo.cart.BizOrderDetail;
import com.snail.result.Result;
import com.snail.service.BizOrderDetailService;
import com.snail.service.BizOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
@RequestMapping("/orderDetail")
public class BizOrderDetailController {

    @Autowired
    private com.snail.service.BizOrderDetailService bizOrderDetailService;
    @Autowired
    private BizOrderService bizOrderService;
//根据订单编号查询订单详情
    @GetMapping("/selectDetailByOrderNo")
    public Result selectDetailByOrderNo(String orderNo) {
        BizOrder bizOrder = bizOrderDetailService.selectDetailByOrderNo(orderNo);

        return Result.success(bizOrder);

    }
}
